package com.leyou.mall.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leyou.mall.data.entity.Seckill;
import com.leyou.mall.data.vo.SeckillVO;
import com.leyou.mall.mapper.SeckillMapper;
import com.leyou.mall.service.ISeckillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName: SeckillServiceImpl
 * @author: LYL
 * @date: 2022/6/22 14:01
 * @Version 1.0
 */
@Service
public class SeckillServiceImpl extends ServiceImpl<SeckillMapper, Seckill> implements ISeckillService {
    @Autowired
    private SeckillMapper seckillMapper;

    @Override
    public Object findPage(Page<Object> page, SeckillVO seckillVO) {

        return seckillMapper.findPage(page, seckillVO.getSeckillName(), seckillVO.getStartTime(),
                seckillVO.getStopTime());
    }
}
